package com.org.platform.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

/**
 * @author devg
 * @Date 2020/2/26 12:46
 */
@Getter
@Setter
@TableName("t_user")
public class UserVo {

  @TableId("USER_ID")
  private Long userId;

  private String openId;

  private String headImgurl;

  @NotEmpty(message = "登录名不能为空")
  @Size(min = 4,max = 15,message = "登录名长度不正确")
  @TableField("LOGIN_NAME")
  private String loginName;

  @NotEmpty(message = "密码不能为空")
  @Size(min = 4,max = 15,message = "密码长度不正确")
  @TableField("PASSWORD")
  private String password;

  @TableField("USER_NAME")
  private String userName;

  @TableField("SEX")
  private short sex;

  @TableField("MOBILE_PHONE")
  private String mobilePhone;

  @TableField("EMAIL")
  private String email;

  @TableField("ID_NO")
  private String idNo;

  @TableField("USER_STATUS")
  private short userStatus;

  @TableField("IS_DELETE")
  private short isDelete;
}
